package com.chixing.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author Yebken.
 * @since 2025-06-25
 */
public class Mycoupon implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户领取优惠券id
     */
    @TableId(value = "mycoupon_id", type = IdType.AUTO)
    private Integer mycouponId;

    /**
     * 用户id
     */
    private Integer custId;

    /**
     * 优惠券id
     */
    private Integer couponId;

    /**
     * 领取的优惠券编号
     */
    private String couponNumber;

    /**
     * 用户领取优惠券时间
     */
    private LocalDateTime mycouponCreateDate;

    /**
     * 用户领取优惠券有效开始时间
     */
    private LocalDateTime couponStartTime;

    /**
     * 用户领取优惠券有效结束时间
     */
    private LocalDateTime couponEndTime;

    /**
     * 0:未过期未使用,1:已使用，2：已过期
     */
    private Integer status;

    private String other1;

    private String other2;

    /**
     * 我的优惠券修改时间（如状态修改）
     */
    private LocalDateTime mycouponUpdateDate;

    public Integer getMycouponId() {
        return mycouponId;
    }

    public void setMycouponId(Integer mycouponId) {
        this.mycouponId = mycouponId;
    }
    public Integer getCustId() {
        return custId;
    }

    public void setCustId(Integer custId) {
        this.custId = custId;
    }
    public Integer getCouponId() {
        return couponId;
    }

    public void setCouponId(Integer couponId) {
        this.couponId = couponId;
    }
    public String getCouponNumber() {
        return couponNumber;
    }

    public void setCouponNumber(String couponNumber) {
        this.couponNumber = couponNumber;
    }
    public LocalDateTime getMycouponCreateDate() {
        return mycouponCreateDate;
    }

    public void setMycouponCreateDate(LocalDateTime mycouponCreateDate) {
        this.mycouponCreateDate = mycouponCreateDate;
    }
    public LocalDateTime getCouponStartTime() {
        return couponStartTime;
    }

    public void setCouponStartTime(LocalDateTime couponStartTime) {
        this.couponStartTime = couponStartTime;
    }
    public LocalDateTime getCouponEndTime() {
        return couponEndTime;
    }

    public void setCouponEndTime(LocalDateTime couponEndTime) {
        this.couponEndTime = couponEndTime;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public String getOther1() {
        return other1;
    }

    public void setOther1(String other1) {
        this.other1 = other1;
    }
    public String getOther2() {
        return other2;
    }

    public void setOther2(String other2) {
        this.other2 = other2;
    }
    public LocalDateTime getMycouponUpdateDate() {
        return mycouponUpdateDate;
    }

    public void setMycouponUpdateDate(LocalDateTime mycouponUpdateDate) {
        this.mycouponUpdateDate = mycouponUpdateDate;
    }

    @Override
    public String toString() {
        return "Mycoupon{" +
            "mycouponId=" + mycouponId +
            ", custId=" + custId +
            ", couponId=" + couponId +
            ", couponNumber=" + couponNumber +
            ", mycouponCreateDate=" + mycouponCreateDate +
            ", couponStartTime=" + couponStartTime +
            ", couponEndTime=" + couponEndTime +
            ", status=" + status +
            ", other1=" + other1 +
            ", other2=" + other2 +
            ", mycouponUpdateDate=" + mycouponUpdateDate +
        "}";
    }
}
